import request from '@/utils/request'

export function listOpendata(query) {
  return request({
    url: '/good/list',
    method: 'get',
    params: query
  })
}
export function add(data) {
  return request({
    url: '/good/add',
    method: 'post',
    data: data
  })
}
export function delLsit(data) {
  return request({
    url: '/good/delList',
    method: 'post',
    data: data
  })
}
export function categoryList() {
  return request({
    url: '/category/list',
    method: 'get',
  })
}
export function categoryadd(data) {
  return request({
    url: '/category/add',
    method: 'post',
    data: data
  })
}
export function categoryDelList(data) {
  return request({
    url: '/category/delList',
    method: 'post',
    data: data
  })
}
export function getNo(data) {
  return request({
    url: '/category/getNo/'+data,
    method: 'get',
  })
}
